package com.vhall.component.entity.reward.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author lsl
 * @since 2021/7/9
 */
@Data
public class RewardListRankReqVO implements Serializable {

    private Integer offset;

    private Integer limit;

    @ParamName("sort_type")
    @Pattern(regexp = "(DESC)|(ASC)|(desc)|(asc)", message = "sort_type格式有误，只能为desc或者asc,忽略大小写")
    private String sortType;

    @NotBlank(message = "room_id参数错误")
    @ParamName("room_id")
    private String roomId;

}
